using System;

namespace IValidate
{
	public class ValidateRequiredAttribute : ModelValidatorBaseImpl
	{
		public ValidateRequiredAttribute(string errorMessage)
			: base(errorMessage, true)
		{
			
		}
		public override bool Validate(object value)
		{
			if (value == null) return false;
			if (System.Convert.ToString(value).Length == 0) return false;
			return true;
		}
	}
}
